package com.njtoyo.taxi.admin.rest.presenter.business.driver;

import com.njtoyo.taxi.admin.mapper.master.enums.DriverChangeInformationReviewCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "司机审核信息模型")
public class DriverAuditInformationPresenter {
    @ApiModelProperty(value = "审核ID")
    private Long id;

    @ApiModelProperty(value = "要修改信息的类型 0:plate_number[车牌号]，1:driver_name[司机姓名],2:company[公司],3:mobile_number[手机号]")
    private DriverChangeInformationReviewCategory category;

    @ApiModelProperty(value = "变更的值")
    private String changeValue;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "司机")
    private DriverAuditInformationData driver;


    @ApiModelProperty(value = "是否已审核")
    private Boolean isVerified;

    @ApiModelProperty(value = "提交时间")
    private Date updatedAt;

    @ApiModelProperty(value = "审核时间戳")
    private Integer verifiedTimestamp;

    /**
     * 司机审核信息
     */
    @Data
    public static class DriverAuditInformationData {

        @ApiModelProperty(value = "司机ID")
        private Long id;

        @ApiModelProperty(value = "司机姓名")
        private String name;

        @ApiModelProperty(value = "司机手机号")
        private String mobileNumber;
    }
}
